<script>
//Creating an object literal.
var myObject = {
	sayHello: function() {
		console.log( "hello" );
	},
	myName: "Rebecca"
};
myObject.sayHello(); // "hello"
console.log( myObject.myName ); // "Rebecca"

// the key portion of each key-value pair can be written as any valid JavaScript identifier, 
//a string (wrapped in quotes), or a number:
var myObject = {
	validIdentifier: 123,
	"some string": 456,
	99999: 789
};
</script>